<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Archive extends Model
{
    //可以被批量赋值的属性.
    protected $fillable = ['title','text','html','user_id','category_id'];
    
    public function category(){
    	return $this->belongsTo('App\Category');
    }
}
